import { InsertTextOperation } from "../../operations/index";
export default function withUpperCase (editor) {
    const apply = editor.apply.bind(editor)
    editor.apply = (operation) => {
        if (operation instanceof InsertTextOperation) {
            let spacers = operation.getSpacers().toUpperCase();
            operation.setSpacers(spacers)
        }
        apply(operation)
    }
    return editor
}